package edu.rutgers.rucampusinfo.tables;

import java.text.SimpleDateFormat;
import java.util.Calendar;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Employee {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
 
    @Persistent
    private String city;
    
    @Persistent
    private String college;
    
    @Persistent
    private String email;
    
    @Persistent
    private String fname;
    
    @Persistent
    private String graduation;
    
    @Persistent
    private String homeaddr;
    
    @Persistent
    private String homephone;
    
    @Persistent
    private String inactive;
    
    @Persistent
    private String lname;
    
    @Persistent
    private String mi;
    
    @Persistent
    private String mobile;
    
    @Persistent
    private String netid;
    
    @Persistent
    private String officephone;
    
    @Persistent
    private String state;
    
    @Persistent
    private String zip;
    
    @Persistent
    private String timestamp;

	public Employee(String city, String college, String email, String fname,
			String graduation, String homeaddr, String homephone,
			String inactive, String lname, String mi, String mobile,
			String netid, String officephone, String state, String zip) {
		super();
		this.city = city;
		this.college = college;
		this.email = email;
		this.fname = fname;
		this.graduation = graduation;
		this.homeaddr = homeaddr;
		this.homephone = homephone;
		this.inactive = inactive;
		this.lname = lname;
		this.mi = mi;
		this.mobile = mobile;
		this.netid = netid;
		this.officephone = officephone;
		this.state = state;
		this.zip = zip;
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Calendar cal = Calendar.getInstance();
		this.timestamp = df.format(cal.getTime()).toString();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCollege() {
		return college;
	}

	public void setCollege(String college) {
		this.college = college;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getGraduation() {
		return graduation;
	}

	public void setGraduation(String graduation) {
		this.graduation = graduation;
	}

	public String getHomeaddr() {
		return homeaddr;
	}

	public void setHomeaddr(String homeaddr) {
		this.homeaddr = homeaddr;
	}

	public String getHomephone() {
		return homephone;
	}

	public void setHomephone(String homephone) {
		this.homephone = homephone;
	}

	public String getInactive() {
		return inactive;
	}

	public void setInactive(String inactive) {
		this.inactive = inactive;
	}

	public String getLname() {
		return lname;
	}

	public void setLname(String lname) {
		this.lname = lname;
	}

	public String getMi() {
		return mi;
	}

	public void setMi(String mi) {
		this.mi = mi;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getNetid() {
		return netid;
	}

	public void setNetid(String netid) {
		this.netid = netid;
	}

	public String getOfficephone() {
		return officephone;
	}

	public void setOfficephone(String officephone) {
		this.officephone = officephone;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	
}
